// Jason+ Agent dir_commands in project directory.mas2j

// -- for invoice
{export invoice/1, record/4, time/3}

/* Initial beliefs and rules */

/* Initial goals */

/* Plans */

-!makeCall(Ag,Minutes) <- .send(directory, askHow, {+!makeCall(_,_)[source(_)]}); .wait(500); !!makeCall(Ag,Minutes).
-!sendText(Ag,Text)    <- .send(directory, askHow, {+!sendText(_,_)[source(_)]}); .wait(500); !!sendText(Ag,Text).

-!registerIncomingInvoice(Id,Price,VAT) <- .send(directory, askHow, {+!registerIncomingInvoice(_,_,_)[source(_)]}); .wait(500); !!registerIncomingInvoice(Id,Price,VAT).
-!registerOutgoingInvoice(Id,Price,VAT) <- .send(directory, askHow, {+!registerOutgoingInvoice(_,_,_)[source(_)]}); .wait(500); !!registerOutgoingInvoice(Id,Price,VAT).

